package com.start.cms.model;

import com.alibaba.fastjson2.JSONObject;
import com.start.cms.entity.StartCmsSpecialEntity;
import com.start.cms.entity.VStartCmsArticleDetailEntity;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.List;

@Data
 @Schema(name="StartSpecialContentModel")
public class StartSpecialContentModel extends StartCmsSpecialEntity {
     @Schema(name="专题内容")
    private List<VStartCmsArticleDetailEntity> contentList;

    public static StartSpecialContentModel create(StartCmsSpecialEntity specialEntity) {
        return JSONObject.parseObject(JSONObject.toJSONString(specialEntity), StartSpecialContentModel.class);
    }
}
